//
//  UIImage+ZDScaleImage.m
//  OCSinaWeiBo
//
//  Created by Apple on 15/11/11.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import "UIImage+ZDScaleImage.h"

@implementation UIImage (ZDScaleImage)


///等比缩放图片
- (CGSize)disPlaySize
{
    CGFloat newWidth = ZDScreenSize.width;
    
    CGFloat newHeight = newWidth * (self.size.height / self.size.width);
    
    return CGSizeMake(newWidth, newHeight);
}

@end
